package com.peas.platform.module.icims.expenditure.basal.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.expenditure.basal.adapter.repository.ExpenditureBusinessCardRepository;
import com.peas.platform.module.icims.expenditure.basal.adapter.repository.po.ExpenditureBusinessCardPo;
import com.peas.platform.module.icims.expenditure.basal.domain.ExpenditureBusinessCardDomain;
import com.peas.platform.module.icims.expenditure.basal.dto.ExpenditureBusinessCardDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ExpenditureBusinessCardDomainImpl extends BaseDomainImpl<ExpenditureBusinessCardDto, ExpenditureBusinessCardPo> implements ExpenditureBusinessCardDomain {

    @Resource
    private ExpenditureBusinessCardRepository expenditureBusinessCardRepository;

    @Override
    public BaseRepository<ExpenditureBusinessCardPo> getMapper() {
        return expenditureBusinessCardRepository;
    }

    @Override
    public Class<? extends BaseRepository<ExpenditureBusinessCardPo>> getRepositoryClass() {
        return ExpenditureBusinessCardRepository.class;
    }

}
